﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MaxLeaf.Platform.DataContract;
using CommonsLib.DB;
using MaxLeaf.Platform.DALImplementation;
using MaxLeaf.Platform.Functions;
using CommonsLib.Utility;
using MaxLeaf.Platform.Commons;
using MaxLeaf.Platform.Contract;
using System.Transactions;

namespace MaxLeaf.Platform.BLLImplementation
{
    public class GoodsProcessor :   IGoodsProcess
    {

        

        public double GetWebPrice(int intGoodsID, int intUnitID, int intAreaID, int intUserID,int intPriceType)
        {
            return new ImInvMasterBLL().GetWebPrice(  intGoodsID,   intUnitID,   intAreaID,   intUserID,  intPriceType);
        }

        public double GetRate(int intGoodsID, int intUnitID)
        {
            return new ImInvMasterBLL().GetRate(intGoodsID, intUnitID);
        }

        public List<ImInvMasterDataModel> GetNoInvLocItems(int intCompanyID, int intGoodsID)
        {
            return new ImInvMasterBLL().GetNoInvLocItems(intCompanyID,intGoodsID);
        }


        public SCPCategoryDataModel GetSCPCategory(int intUserID, int intGoodsID, bool blnTop)
        {
            return new SCPCategoryBLL().GetSCPCategory(intUserID, intGoodsID,  blnTop);
        }


        public List<goods_categoryDataModel> GetGoodCateGoryBySCPCategory(int intCompanyID, int intSCPCategoryID)
        {
            return new ImInvMasterBLL().GetGoodCateGoryBySCPCategory(intCompanyID, intSCPCategoryID);
        }
        public List<string> GetUserKeywords(int intCompanyID, string strStKeywords, int intConut)
        {
            return new goods_UserKeywordsBLL().GetUserKeywords(  intCompanyID,strStKeywords, intConut);
        }



    }
}
